﻿@model ElearningOUHv2.Models.LogOnModel
@{
    ViewBag.Title = "Log På";
    Session.Add("help", "Account/LogOn");
}
<h2>
    Log på</h2>

@section scripts{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}

<div>
@Html.ActionLink("Opret ny bruger", "Register")
</div>

@Html.ValidationSummary(true, "Login ikke muligt. Kontroller dine login oplysninger og prøv igen.")
@using (Html.BeginForm())
{
    <div>
        <fieldset>
            <legend>Konto oplysninger</legend>
            <div class="editor-label">
                @Html.Label("Bruger Navn")
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>
            <div class="editor-label">
                @Html.Label("Kode")
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>
            <div class="editor-label">
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.Label("Husk mig?")
            </div>
            <p>
                <input type="submit" value="Log på" />
            </p>
        </fieldset>
    </div>
}
